<template lang=pug>
    div#rent
        search-input.searchInput(:commitFunctionName="'updateRentList'",:searchUrl="'/order/get'",:keyName="'rentSearchKey'",:searchKeyFunctionName="'updateRentSearchKey'")
        main
            div(ref="rentList")
                ul
                    span 刷新
                    vSimpleRent(v-for="item in $store.state.rentList",:simpleRent="item",:key="item.ej_order_id")
                    span 加载更多
        vFooter
</template>

<script type="es6">
    import searchInput from '../common/searchInput'
    import rentBody from '../rent/rentBody'
    import vFooter from '../common/footer/footer'
    export default {
        name: 'rent',
        data () {
            return {}
        },
        components: {
            searchInput,
            rentBody,
            vFooter
        }
    }
</script>

<style lang="stylus" scoped>
    .searchInput
        position fixed
        top 0
</style>
